package net.lzzy.practices.constants;

/**
 * @author m
 */
public final class ApiConstant {


    //不允许别人构造
    private  ApiConstant(){

    }

    /**
     * 指定api 返回的content type
     */
    public  static  final  String API_PRODUCES="application/json";
    /**
     * AuthApiController 相关的路由配置
     */

    //根路由
    public  static  final  String ROUTE_AUTH_ROOT="api/v1";
    //登入路由
    public  static  final  String ROUTE_AUTH_LOGIN="/login";
    //判断账户路由
    public  static  final  String ROUTE_AUTH_EXISTS="/exists/{user}";
    public  static  final  String ROUTE_AUTH_REGISTER="/register";
    //
    public  static  final  String ROUTE_AUTH_UPLOAD="/upload";

    /**
     * UserApiController 路由 相关配置
     */

    public static final  String  ROUTE_USER_ROOT="api/v1/admin";
    public static final  String  ROUTE_USER_ALL="/";

    public static final  String  ROUTE_USER_PAGE="/page";

    public static final  String  ROUTE_USER__SEARCH="/search/{kw}";
    public static final  String  ROUTE_USER_APPLYING="/apply";

    public static final  String  ROUTE_USER_APPROVE="/approve";
    public static final String ROUTE_USER_DECLINE = "/decline";
    public static final  String  ROUTE_USER_BAN="/ban";

    /*
      CourseApiController 相关配置
     */

    public  static  final  String ROUTE_COURSE_ROOT="api/vi/course";
    public  static  final  String ROUTE_COURSE_ALL="/";
    public  static  final  String ROUTE_COURSE_OPEN="/op";

    public  static  final  String ROUTE_COURSE_PAGE="/p";

    public  static  final  String ROUTE_COURSE_OPEN_PAGE="/open/page";

    public  static  final  String ROUTE_COURSE_TEACHER="/teacher";

    public  static  final  String ROUTE_COURSE_STUDENT="/student";

    public  static  final  String ROUTE_COURSE_ADD="/add";
    public  static  final  String ROUTE_COURSE_OPEN_CLOSE="/oc";
    public  static  final  String ROUTE_COURSE_PUT="/put/{id}";
    public  static  final  String ROUTE_COURSE_REMOVE="/remove";
    /**
     * ApplicantApiV
     */
    public static  final  String ROUTE_APPLY_ROOT="apo/v1/apply";

    public  static  final  String ROUTE_APPLY_APPLY="/apply";

    public  static  final  String ROUTE_APPLY_STUDENT_COURSES="/courses";

    public  static  final  String ROUTE_APPLY_STUDENT_ENROLLED="/enrolled";

    public  static  final  String ROUTE_APPLY_STUDENT_APPLYING="/applying";
    public  static  final  String ROUTE_APPLY_STUDENT_DECLINED="/declined";

    public  static  final  String ROUTE_APPLY_APPROVE="/approve";

    public  static  final  String ROUTE_APPLY_DECLINE="/decline";

    public  static  final  String ROUTE_APPLY_REMOVE="/remove";

    public  static  final  String ROUTE_APPLY_TEACHER_ENROLLED="/teacher/enrolled";

    public  static  final  String ROUTE_APPLY_TEACHER_APPLYING="/teacher/applying";

    public  static  final  String ROUTE_APPLY_TEACHER_DECLINED="/teacher/declined";

    /**
     * Chapter
     */

    public static  final  String ROUTE_CHAPTER_ROOT="apo/v1/chapter";

    public static final String ROUTE_CHAPTER_TEACHER_CHAPTERS = "/teacher/chapters";
    public static final String ROUTE_CHAPTER_STUDENT_CHAPTERS = "/student/chapters";
    public static final String ROUTE_CHAPTER_GET = "/get/{id}";
    public static final String ROUTE_CHAPTER_ADD = "/add";
    public static final String ROUTE_CHAPTER_UPDATE = "/update";
    public static final String ROUTE_CHAPTER_OPEN_CLOSE = "/open/close";
    public static final String ROUTE_CHAPTER_REMOVE = "/remove";

}
